﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace dzs.Web.materialinfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int mid=(Convert.ToInt32(strid));
					ShowInfo(mid);
				}
			}
		}
		
	private void ShowInfo(int mid)
	{
		dzs.BLL.materialinfo bll=new dzs.BLL.materialinfo();
		dzs.Model.materialinfo model=bll.GetModel(mid);
		//this.lblmid.Text=model.mid.ToString();
		this.lblproid.Text=model.proid;
		this.lblusework.Text=model.usework;
		this.lblprojectname.Text=model.projectname;
		this.lblprojecttype.Text=model.projecttype;
		this.lblsupplier.Text=model.supplier;
		this.lblmaterial.Text=model.material;
		this.lblnums.Text=model.nums.ToString();
		this.lblunit.Text=model.unit;
		this.lblsuppliername.Text=model.suppliername;
		this.lblsupplierphone.Text=model.supplierphone;
		this.lblmstatus.Text=model.mstatus.ToString();
		this.lbluid.Text=model.uid.ToString();
		this.lblmtype.Text=model.mtype.ToString();

	}


    }
}
